<?php
// +----------------------------------------------------------------------
// | QbtCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.qbt8.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 千佰特 <http://www.qbt8.com>
// +----------------------------------------------------------------------
namespace plugins\qbt_payment_management\service;

use think\Controller;
class PayService extends Controller
{

    public function pay($pay_type,$data){
        $class = "plugins\qbt_payment_management\controller\\".$pay_type;
        if (class_exists($class)){
            $pay = new $class;
            $json = $pay->pay($data);
            return $json;
        }else{
            echo '该支付方式不存在';
        }
    }
}
